package com.ruoyi.ylyx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ylyx.mapper.YlyxBaseconfigMapper;
import com.ruoyi.ylyx.domain.YlyxBaseconfig;
import com.ruoyi.ylyx.service.IYlyxBaseconfigService;
import com.ruoyi.common.core.text.Convert;

/**
 * 基础设置Service业务层处理
 * 
 * @author yuexl
 * @date 2021-02-05
 */
@Service
public class YlyxBaseconfigServiceImpl implements IYlyxBaseconfigService 
{
    @Autowired
    private YlyxBaseconfigMapper ylyxBaseconfigMapper;

    /**
     * 查询基础设置
     * 
     * @param id 基础设置ID
     * @return 基础设置
     */
    @Override
    public YlyxBaseconfig selectYlyxBaseconfigById(String id)
    {
        return ylyxBaseconfigMapper.selectYlyxBaseconfigById(id);
    }

    /**
     * 查询基础设置列表
     * 
     * @param ylyxBaseconfig 基础设置
     * @return 基础设置
     */
    @Override
    public List<YlyxBaseconfig> selectYlyxBaseconfigList(YlyxBaseconfig ylyxBaseconfig)
    {
        return ylyxBaseconfigMapper.selectYlyxBaseconfigList(ylyxBaseconfig);
    }

    /**
     * 新增基础设置
     * 
     * @param ylyxBaseconfig 基础设置
     * @return 结果
     */
    @Override
    public int insertYlyxBaseconfig(YlyxBaseconfig ylyxBaseconfig)
    {
        return ylyxBaseconfigMapper.insertYlyxBaseconfig(ylyxBaseconfig);
    }

    /**
     * 修改基础设置
     * 
     * @param ylyxBaseconfig 基础设置
     * @return 结果
     */
    @Override
    public int updateYlyxBaseconfig(YlyxBaseconfig ylyxBaseconfig)
    {
        return ylyxBaseconfigMapper.updateYlyxBaseconfig(ylyxBaseconfig);
    }

    /**
     * 删除基础设置对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteYlyxBaseconfigByIds(String ids)
    {
        return ylyxBaseconfigMapper.deleteYlyxBaseconfigByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除基础设置信息
     * 
     * @param id 基础设置ID
     * @return 结果
     */
    @Override
    public int deleteYlyxBaseconfigById(String id)
    {
        return ylyxBaseconfigMapper.deleteYlyxBaseconfigById(id);
    }
}
